package com.example.searchcenter.center;

import com.example.searchcenter.R;
import com.example.searchcenter.helper.ImageLoader;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ImageView;

/***
 * 
 * @author NguyenTrung
 * function: view full image from AlbumsFragment
 */
public class FullImageActivity extends Activity {
 
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.full_image_albums);
 
        // get intent data
        Intent i = getIntent();
 
        // Selected image id
        int position = i.getExtras().getInt("id");
        String[] arrayImage = i.getExtras().getStringArray("array");
        //ImageAdapter imageAdapter = new ImageAdapter(this, null);
 
        ImageView imageView = (ImageView) findViewById(R.id.full_image_view);
        ImageLoader il = new ImageLoader(getApplicationContext());
        il.DisplayImage("https://tinhnguyen.edu.vn/public/img/places/thumbs/"+arrayImage[position], imageView);
        //imageView.setImageResource(imageAdapter.mThumbIds[position]);
    }
 
}